package com.lin.auth.common.config;

import org.springframework.http.HttpStatus;

public class CustomBusinessException extends RuntimeException {
    private HttpStatus status;

    public CustomBusinessException(String message) {
        super(message);
        this.status = HttpStatus.valueOf(500);
    }

    public CustomBusinessException(String message, HttpStatus status) {
        super(message);
        this.status = status;
    }

    public HttpStatus getStatus() {
        return status;
    }
}